<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> 制作花样链接卡 </title>
    <style>
         /* 相对原位置偏移 */

        .box{
            width: 300px;
            height: 300px;
            display: block;
            border: 1px solid red;
            padding: 10px;
        }

        .box a{
            display: block;
            width: 100px;
            height: 100px;
            color: white;
            position: relative;
            text-align: center;
            line-height: 100px;
            text-decoration: none;
            background-color: deeppink;
        }
        
        .box a:nth-child(even){                       
            left: 200px;
            top: -100px;
        }                   /* 偶数列相对原位置偏移 */


        .box a:last-child{
            left: 100px;
            top: -300px;
            background-color: deepskyblue;
        }
        
    </style>
</head>
<body>
    <div class="box">
        <a href="#">链接1</a>
        <a href="#">链接2</a>
        <a href="#">链接3</a>
        <a href="#">链接4</a>
        <a href="#">链接5</a>
    </div>
</body5
</html5